<div class="m-license">
    <div class="clearfix">
        {% if site.repository and site.repository_tree %}
        <a class="octocat" href="https://github.com/{{ site.repository }}/tree/{{ site.repository_tree }}/{{ page.path }}">
            <img alt="View on Github" src="{{ "/assets/images/octocat.jpg" | prepend: site.baseurl | replace: '//', '/'}}" />
        </a>
        <p><a href="https://github.com/{{ site.repository }}/tree/{{ site.repository_tree }}/{{ page.path }}">View this POST on Github</a>.</P>
        {% endif %}
        <p>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">CC-BY-NC-4.0</a> license.</p>
        <a class="license" rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">
            <img alt="Creative Commons License" src="{{ '/assets/images/license-cc4.png' | prepend: site.baseurl  | replace: '//', '/'}}" />
        </a>
        <p>欢迎转载，转载需注明出处：<a class="url" href="{% include snippets/page-url.html %}">
            {% include snippets/page-url.html %}
        </a>，且禁止用于商业目的。</p>
    </div>
</div>